package com.mindskip.xzs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;
import sun.nio.ch.ThreadPool;

/**
 * @author 朱东
 * 异步评分
 */

@Service
public class CorrectSoreImpl {

    @Autowired
    @Qualifier(value = "taskExecutor")
    private ThreadPoolTaskExecutor threadPoolTaskExecutor;

    public void doWork(Runnable runnable){
        threadPoolTaskExecutor.execute(runnable);
    }

}
